<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::ocl::OpenCLExecutionContext Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d5/d96/namespacecv_1_1ocl.html">ocl</a></li><li class="navelem"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="../../d9/d59/classcv_1_1ocl_1_1OpenCLExecutionContext-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::ocl::OpenCLExecutionContext Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../dc/d83/group__core__opencl.html">OpenCL support</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;opencv2/core/ocl.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac6af8e4cf012090c19898515e4dcbf0b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#ac6af8e4cf012090c19898515e4dcbf0b">OpenCLExecutionContext</a> ()=default</td></tr>
<tr class="separator:ac6af8e4cf012090c19898515e4dcbf0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2bad663c3febd65e64e19e538019a06"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#ac2bad663c3febd65e64e19e538019a06">OpenCLExecutionContext</a> (const <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;)=default</td></tr>
<tr class="separator:ac2bad663c3febd65e64e19e538019a06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affc756921aa0d8ce916ea37eae0d988f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#affc756921aa0d8ce916ea37eae0d988f">OpenCLExecutionContext</a> (<a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&amp;)=default</td></tr>
<tr class="separator:affc756921aa0d8ce916ea37eae0d988f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75788f3fddb08d9054e8ed839f7a5e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#ae75788f3fddb08d9054e8ed839f7a5e6">~OpenCLExecutionContext</a> ()=default</td></tr>
<tr class="separator:ae75788f3fddb08d9054e8ed839f7a5e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48b5bca72706e8875c581fd6e55d0782"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a48b5bca72706e8875c581fd6e55d0782">bind</a> () const</td></tr>
<tr class="separator:a48b5bca72706e8875c581fd6e55d0782"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9920daf9d466369fbc4f87792fa72179"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a9920daf9d466369fbc4f87792fa72179">cloneWithNewQueue</a> (const <a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">ocl::Queue</a> &amp;q) const</td></tr>
<tr class="separator:a9920daf9d466369fbc4f87792fa72179"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02177128cd0fdcb4e7605145944681f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a02177128cd0fdcb4e7605145944681f4">cloneWithNewQueue</a> () const</td></tr>
<tr class="separator:a02177128cd0fdcb4e7605145944681f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c626e6579c65d10af592f4eeb31a112"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a0c626e6579c65d10af592f4eeb31a112">empty</a> () const</td></tr>
<tr class="separator:a0c626e6579c65d10af592f4eeb31a112"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a410b0e9d2c1f33072ee2495590b7981d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a410b0e9d2c1f33072ee2495590b7981d">getContext</a> () const</td></tr>
<tr class="separator:a410b0e9d2c1f33072ee2495590b7981d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae13045284b5d228745d1856863e7e692"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#ae13045284b5d228745d1856863e7e692">getDevice</a> () const</td></tr>
<tr class="separator:ae13045284b5d228745d1856863e7e692"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21bd43106061c7bad8eb93f12a796717"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">Queue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a21bd43106061c7bad8eb93f12a796717">getQueue</a> () const</td></tr>
<tr class="separator:a21bd43106061c7bad8eb93f12a796717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a295bc24395def56f9093496136b9f952"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a295bc24395def56f9093496136b9f952">operator=</a> (const <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;)=default</td></tr>
<tr class="separator:a295bc24395def56f9093496136b9f952"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93de46d864dae3f7c44684c5bcae8f9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a93de46d864dae3f7c44684c5bcae8f9a">operator=</a> (<a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&amp;)=default</td></tr>
<tr class="separator:a93de46d864dae3f7c44684c5bcae8f9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8420514ef03983363809720a7fe1902"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#aa8420514ef03983363809720a7fe1902">release</a> ()</td></tr>
<tr class="separator:aa8420514ef03983363809720a7fe1902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54fd377871f285d98fa4dff938b379d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a54fd377871f285d98fa4dff938b379d0">setUseOpenCL</a> (bool flag)</td></tr>
<tr class="separator:a54fd377871f285d98fa4dff938b379d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f7a11a8edc5ade6b9d858dc8b5c0acb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a0f7a11a8edc5ade6b9d858dc8b5c0acb">useOpenCL</a> () const</td></tr>
<tr class="separator:a0f7a11a8edc5ade6b9d858dc8b5c0acb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a0c2c9987340f44950865b8ece48e2d34"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a0c2c9987340f44950865b8ece48e2d34">create</a> (const std::string &amp;platformName, void *platformID, void *context, void *deviceID)</td></tr>
<tr class="memdesc:a0c2c9987340f44950865b8ece48e2d34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL execution context OpenCV will check if available OpenCL platform has platformName name, then assign context to OpenCV and call <code>clRetainContext</code> function. The deviceID device will be used as target device and new command queue will be created.  <a href="#a0c2c9987340f44950865b8ece48e2d34">More...</a><br /></td></tr>
<tr class="separator:a0c2c9987340f44950865b8ece48e2d34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a380c3c8148cdc293d440526737d289c0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a380c3c8148cdc293d440526737d289c0">create</a> (const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;context, const <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a> &amp;device, const <a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">ocl::Queue</a> &amp;queue)</td></tr>
<tr class="memdesc:a380c3c8148cdc293d440526737d289c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL execution context.  <a href="#a380c3c8148cdc293d440526737d289c0">More...</a><br /></td></tr>
<tr class="separator:a380c3c8148cdc293d440526737d289c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2890cfb4b198f7621590a2c0de4465fc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a2890cfb4b198f7621590a2c0de4465fc">create</a> (const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;context, const <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a> &amp;device)</td></tr>
<tr class="separator:a2890cfb4b198f7621590a2c0de4465fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1434a5c18187205185432164533ec90"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#ab1434a5c18187205185432164533ec90">getCurrent</a> ()</td></tr>
<tr class="separator:ab1434a5c18187205185432164533ec90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d44d4d233f1e540cb41aade63cf2b0f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a0d44d4d233f1e540cb41aade63cf2b0f">getCurrentRef</a> ()</td></tr>
<tr class="separator:a0d44d4d233f1e540cb41aade63cf2b0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a87ec75eef7e01598b52383dc03e2b4b3"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; Impl &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html#a87ec75eef7e01598b52383dc03e2b4b3">p</a></td></tr>
<tr class="separator:a87ec75eef7e01598b52383dc03e2b4b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac6af8e4cf012090c19898515e4dcbf0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6af8e4cf012090c19898515e4dcbf0b">&#9670;&nbsp;</a></span>OpenCLExecutionContext() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::OpenCLExecutionContext::OpenCLExecutionContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae75788f3fddb08d9054e8ed839f7a5e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae75788f3fddb08d9054e8ed839f7a5e6">&#9670;&nbsp;</a></span>~OpenCLExecutionContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::OpenCLExecutionContext::~OpenCLExecutionContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac2bad663c3febd65e64e19e538019a06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2bad663c3febd65e64e19e538019a06">&#9670;&nbsp;</a></span>OpenCLExecutionContext() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::OpenCLExecutionContext::OpenCLExecutionContext </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="affc756921aa0d8ce916ea37eae0d988f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affc756921aa0d8ce916ea37eae0d988f">&#9670;&nbsp;</a></span>OpenCLExecutionContext() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::OpenCLExecutionContext::OpenCLExecutionContext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a48b5bca72706e8875c581fd6e55d0782"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48b5bca72706e8875c581fd6e55d0782">&#9670;&nbsp;</a></span>bind()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ocl::OpenCLExecutionContext::bind </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Bind this OpenCL execution context to current thread.</p>
<p><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> can't be empty.</p>
<dl class="section note"><dt>Note</dt><dd>clFinish is not called for queue of previous execution context </dd></dl>

</div>
</div>
<a id="a9920daf9d466369fbc4f87792fa72179"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9920daf9d466369fbc4f87792fa72179">&#9670;&nbsp;</a></span>cloneWithNewQueue() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> cv::ocl::OpenCLExecutionContext::cloneWithNewQueue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">ocl::Queue</a> &amp;&#160;</td>
          <td class="paramname"><em>q</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates new execution context with same OpenCV context and device</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">q</td><td>OpenCL queue </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a02177128cd0fdcb4e7605145944681f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02177128cd0fdcb4e7605145944681f4">&#9670;&nbsp;</a></span>cloneWithNewQueue() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> cv::ocl::OpenCLExecutionContext::cloneWithNewQueue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
<a id="a0c2c9987340f44950865b8ece48e2d34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c2c9987340f44950865b8ece48e2d34">&#9670;&nbsp;</a></span>create() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> cv::ocl::OpenCLExecutionContext::create </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>platformName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>platformID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>deviceID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates OpenCL execution context OpenCV will check if available OpenCL platform has platformName name, then assign context to OpenCV and call <code>clRetainContext</code> function. The deviceID device will be used as target device and new command queue will be created. </p>
<dl class="section note"><dt>Note</dt><dd>Lifetime of passed handles is transferred to OpenCV wrappers on success</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">platformName</td><td>name of OpenCL platform to attach, this string is used to check if platform is available to OpenCV at runtime </td></tr>
    <tr><td class="paramname">platformID</td><td>ID of platform attached context was created for (cl_platform_id) </td></tr>
    <tr><td class="paramname">context</td><td>OpenCL context to be attached to OpenCV (cl_context) </td></tr>
    <tr><td class="paramname">deviceID</td><td>OpenCL device (cl_device_id) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a380c3c8148cdc293d440526737d289c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a380c3c8148cdc293d440526737d289c0">&#9670;&nbsp;</a></span>create() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> cv::ocl::OpenCLExecutionContext::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a> &amp;&#160;</td>
          <td class="paramname"><em>device</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">ocl::Queue</a> &amp;&#160;</td>
          <td class="paramname"><em>queue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates OpenCL execution context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>non-empty OpenCL context </td></tr>
    <tr><td class="paramname">device</td><td>non-empty OpenCL device (must be a part of context) </td></tr>
    <tr><td class="paramname">queue</td><td>non-empty OpenCL queue for provided context and device </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2890cfb4b198f7621590a2c0de4465fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2890cfb4b198f7621590a2c0de4465fc">&#9670;&nbsp;</a></span>create() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> cv::ocl::OpenCLExecutionContext::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a> &amp;&#160;</td>
          <td class="paramname"><em>device</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
<a id="a0c626e6579c65d10af592f4eeb31a112"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c626e6579c65d10af592f4eeb31a112">&#9670;&nbsp;</a></span>empty()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::OpenCLExecutionContext::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a410b0e9d2c1f33072ee2495590b7981d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a410b0e9d2c1f33072ee2495590b7981d">&#9670;&nbsp;</a></span>getContext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::ocl::OpenCLExecutionContext::getContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get associated <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">ocl::Context</a> </p>

</div>
</div>
<a id="ab1434a5c18187205185432164533ec90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1434a5c18187205185432164533ec90">&#9670;&nbsp;</a></span>getCurrent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&amp; cv::ocl::OpenCLExecutionContext::getCurrent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get OpenCL execution context of current thread.</p>
<p>Initialize OpenCL execution context if it is empty</p><ul>
<li>create new</li>
<li>reuse context of the main thread (threadID = 0) </li>
</ul>

</div>
</div>
<a id="a0d44d4d233f1e540cb41aade63cf2b0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d44d4d233f1e540cb41aade63cf2b0f">&#9670;&nbsp;</a></span>getCurrentRef()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&amp; cv::ocl::OpenCLExecutionContext::getCurrentRef </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get OpenCL execution context of current thread (can be empty) </p>

</div>
</div>
<a id="ae13045284b5d228745d1856863e7e692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae13045284b5d228745d1856863e7e692">&#9670;&nbsp;</a></span>getDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a>&amp; cv::ocl::OpenCLExecutionContext::getDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the single default associated <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">ocl::Device</a> </p>

</div>
</div>
<a id="a21bd43106061c7bad8eb93f12a796717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21bd43106061c7bad8eb93f12a796717">&#9670;&nbsp;</a></span>getQueue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">Queue</a>&amp; cv::ocl::OpenCLExecutionContext::getQueue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the single <a class="el" href="../../dd/dc0/classcv_1_1ocl_1_1Queue.html">ocl::Queue</a> that is associated with the <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">ocl::Context</a> and the single default <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">ocl::Device</a> </p>

</div>
</div>
<a id="a295bc24395def56f9093496136b9f952"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a295bc24395def56f9093496136b9f952">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&amp; cv::ocl::OpenCLExecutionContext::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a93de46d864dae3f7c44684c5bcae8f9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93de46d864dae3f7c44684c5bcae8f9a">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a>&amp; cv::ocl::OpenCLExecutionContext::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d7/d83/classcv_1_1ocl_1_1OpenCLExecutionContext.html">OpenCLExecutionContext</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa8420514ef03983363809720a7fe1902"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8420514ef03983363809720a7fe1902">&#9670;&nbsp;</a></span>release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ocl::OpenCLExecutionContext::release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a54fd377871f285d98fa4dff938b379d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54fd377871f285d98fa4dff938b379d0">&#9670;&nbsp;</a></span>setUseOpenCL()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ocl::OpenCLExecutionContext::setUseOpenCL </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>flag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0f7a11a8edc5ade6b9d858dc8b5c0acb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f7a11a8edc5ade6b9d858dc8b5c0acb">&#9670;&nbsp;</a></span>useOpenCL()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::OpenCLExecutionContext::useOpenCL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a87ec75eef7e01598b52383dc03e2b4b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87ec75eef7e01598b52383dc03e2b4b3">&#9670;&nbsp;</a></span>p</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;Impl&gt; cv::ocl::OpenCLExecutionContext::p</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../da/d74/ocl_8hpp.html">ocl.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
